// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 电池箱风险数据 获取电池箱风险数据列表 GET /diagnosis/risk/datas */
export async function riskControllerGetBoxList(options?: { [key: string]: any }) {
  return request<API.BoxInfo[]>(`${apiPrefix}/diagnosis/risk/datas`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 风险信息列表 获取风险信息列表 GET /diagnosis/risk/list */
export async function riskControllerGetRiskList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.riskControllerGetRiskListParams,
  options?: { [key: string]: any },
) {
  return request<API.Pagination>(`${apiPrefix}/diagnosis/risk/list`, {
    method: 'GET',
    params: {
      ...params,
      page: undefined,
      ...params['page'],
    },
    ...(options || {}),
  });
}
